import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	integralLog_list: apix + '/integral/integralLog/list',
	integralLog_export: apix + '/integral/integralLog/export',
	integral_integralLog: apix + '/integral/integralLog',
	// integral_integralLog: apix + '/integral/integralLog',
	integral_integralLogIds: apix + '/integral/integralLog/',
}

//查询积分消费
export function integralLogList(page) {
	return request.get(api.integralLog_list, {
		...page
	})
}
//导出积分消费
export function integralLogExport(obj) {
	return request.post(api.integralLog_export, {
		...obj
	})
}
//获取积分消费详情
export function integralLogId(id) {
	return request.get(api.integral_integralLogIds + id)
}
//新增积分消费
export function addintegralLog(obj) {
	return request.post(api.integral_integralLog, {
		obj
	})
}
//修改积分消费
export function putintegralLog(obj) {
	return request.put(api.integral_integralLog, {
		...obj
	})
}
//删除积分消费
export function delintegralLog(id) {
	return request.delete(api.integral_integralLogIds + id)
}